package karma.main;

import java.util.HashMap;
import java.util.Map;
import net.minecraft.src.*;

public class EnchanterRecipes
{
    private static final EnchanterRecipes enchantingBase = new EnchanterRecipes();
    private Map enchantingList;

    public static final EnchanterRecipes enchanting()
    {
        return enchantingBase;
    }

    private EnchanterRecipes()
    {
        enchantingList = new HashMap();
        addEnchanting(mod_KarmaCraft.Netherstone.blockID, new ItemStack(mod_KarmaCraft.Hellstone));
        addEnchanting(Block.stone.blockID, new ItemStack(mod_KarmaCraft.Holystone));
        addEnchanting(Item.leather.shiftedIndex, new ItemStack(mod_KarmaCraft.EnchantLeather));
        addEnchanting(Item.diamond.shiftedIndex, new ItemStack(mod_KarmaCraft.ChargedDiamond));
        addEnchanting(Item.paper.shiftedIndex, new ItemStack(mod_KarmaCraft.EnchantPaper));
    }

    public void addEnchanting(int i, ItemStack itemstack)
    {
        enchantingList.put(Integer.valueOf(i), itemstack);
    }

    public ItemStack getEnchantingResult(int i)
    {
        return (ItemStack)enchantingList.get(Integer.valueOf(i));
    }

    public Map getEnchantingList()
    {
        return enchantingList;
    }
}
